<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改维护人信息</title>

</head>
<body> 
	<!-- 上传图片是需要指定属性 enctype="multipart/form-data" -->
	<!-- <form id="itemForm" action="" method="post" enctype="multipart/form-data"> -->
	<form id="userForm"	action="${pageContext.request.contextPath }/user/updateUser.action"
		  method="post"
		enctype="multipart/form-data"
	>	修改信息：
		<table width="100%" border=1>
			<tr>
				<td>名称</td>
				<td><input type="text" name="username" value="${user.username }" /></td>
			</tr>

			<tr>
				<td>生日</td>
				<td><label>
					<input type="text" name="birthday"
							   value="<fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd HH:mm:ss"/>" />
				</label>
				</td>
			</tr>

			<tr>
				<td>性别</td>

<%--				<td>--%>
<%--				<c:if test="${user.sex==1}">--%>
<%--					男--%>
<%--				</c:if>--%>
<%--				<c:if test="${user.sex==2}">--%>
<%--					女--%>
<%--				</c:if>--%>
<%--			</td>--%>

				<td><input type="text" name="sex" value="${user.sex}" /></td>
			</tr>

			<tr>
				<td>地址</td>
				<td>
					<textarea rows="3" cols="30" name="address">
						${user.address }
					</textarea>
				</td>
			</tr>

			<tr>
				<td colspan="2" align="center">
					<input type="submit" value="提交" />
				</td>
			</tr>
		</table>

	</form>
</body>

</html>